<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnTenantIdToPlaylistPackageItemTable extends AbstractMigration
{
    public function up()
    {
        $this->table('playlist_item_version')
            ->addColumn('tenant_id', 'integer', ['signed' => false, 'limit' => 11, 'default' => 0, 'comment' => '租户id'])
            ->save();
    }

    public function down()
    {
        $this->table('playlist_item_version')
            ->removeColumn('tenant_id')
            ->save();
    }
}
